home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
GRAPHICS
/
IMGLIB95
/
UDBTOOLB.PA_
/
UDBTOOLB.PA
Wrap
Text File
|
1996-03-31
|
2KB
|
93 lines
{
Written by Jan Dekkers and Kevin Adams (c) 1995, 1996. If you are a non
registered client, you may use or alter this demo only for evaluation
purposes.
Copyright by SkyLine Tools. All rights reserved.
Part of Imagelib VCL/DLL Library.
}
unit udbtoolb;
{Includes settings to compile in either 16 or 32 bit}
{$I DEFILIB.INC}
interface
uses
{$IFDEF DEL32}
Windows,
{$ELSE}
WinTypes,
WinProcs,
{$ENDIF}
DLL95V1,
Messages,
SysUtils,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
StdCtrls,
DB,
DBTables,
DMIToolB, {PDBMultiImage Toolbar VCL component}
TDMULTIP; {PDBMultiMedia1, PDBMultiImage VCL components}
type
TDBMultiImageToolbar = class(TForm)
PDBMultiImage1: TPDBMultiImage;
Table1: TTable;
DataSource1: TDataSource;
CheckBox1: TCheckBox;
PDBMImageToolBar1: TPDBMImageToolBar;
procedure CheckBox1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
DBMultiImageToolbar: TDBMultiImageToolbar;
implementation
{$R *.DFM}
{------------------------------------------------------------------------}
procedure TDBMultiImageToolbar.CheckBox1Click(Sender: TObject);
begin
PDBMImageToolBar1.ShowToolBar:=CheckBox1.Checked;
end;
{------------------------------------------------------------------------}
procedure TDBMultiImageToolbar.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
DBMultiImageToolbar:=Nil;
Action:=caFree;
end;
{------------------------------------------------------------------------}
procedure TDBMultiImageToolbar.FormCreate(Sender: TObject);
begin
If FileExists(ExtractFilePath(Application.ExeName)+'JPSTAMP.DBF') then begin
{if the table exists open it on creation}
Table1.DataBaseName:=ExtractFilePath(Application.ExeName);
Table1.TableName:='JPSTAMP.DBF';
Table1.Active:=True;
end;
{On create show the toolbar}
PDBMImageToolBar1.ShowToolBar:=true;
PDBMImageToolBar1.PreviewsDir:=ExtractFilePath(Application.Exename);
end;
{------------------------------------------------------------------------}
end.